package com.game.server.message.proto.in;

import java.nio.ByteBuffer;
import java.nio.charset.CharacterCodingException;

import com.game.majiang.config.LogManager;
import lombok.Getter;

import com.comm.ISession;

import com.game.server.message.AbstractMessage;
import com.game.server.message.IRequset;

public abstract class AbstractCreateRoomReq extends AbstractMessage implements IRequset{
	static final public int msgcode = 128;
	
	@Getter protected Integer type;

	@Getter protected Integer difen;

	@Getter protected String roomname;

	@Getter protected Integer dairumin;

	@Getter protected Integer shengmangbeishu;

	@Getter protected Integer autoStartGameCount;

	@Getter protected Integer canDairuTime;

	@Getter protected Integer xiumangorzoumang;

	@Getter protected Integer kaiqimangquan;

	@Getter protected Integer GPSorIP;

	@Getter protected Integer dijiuwang;

	@Getter protected Integer fanghuopai;

	@Getter protected Integer gameallTime;

	@Getter protected Integer gameallCount;

	@Getter protected Integer clubid;

	@Getter protected Integer controlBringIn;

	
	@Override
	public void DeSerialize(ByteBuffer buffer) throws CharacterCodingException {
		type = ReadInteger(buffer);
		difen = ReadInteger(buffer);
		roomname = ReadString(buffer);
		dairumin = ReadInteger(buffer);
		shengmangbeishu = ReadInteger(buffer);
		autoStartGameCount = ReadInteger(buffer);
		canDairuTime = ReadInteger(buffer);
		xiumangorzoumang = ReadInteger(buffer);
		kaiqimangquan = ReadInteger(buffer);
		GPSorIP = ReadInteger(buffer);
		dijiuwang = ReadInteger(buffer);
		fanghuopai = ReadInteger(buffer);
		gameallTime = ReadInteger(buffer);
		gameallCount = ReadInteger(buffer);
		clubid = ReadInteger(buffer);
		controlBringIn = ReadInteger(buffer);
		
	}
	
	
	@Override
	public abstract void Execute(ISession session);
}

